package com.hps.demo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author heps
 * @since 2020/9/7
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

  @Value("${age}")
  private Integer age;

  @GetMapping("/age")
  public Integer getAge() {
    return age;
  }
}
